<%@ page pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://www.ld.com/shield/tags" prefix="shield"%>
<%@ page trimDirectiveWhitespaces="true" %>
<fmt:setLocale value="zh_CN"/>
<shield:permssion type="button">
	<div class="tab-content mb10">
		<div class="tab-pane active" id="panel-count">
			<div class="count_content" id="count-content">
				<center class="count_body clearfix">
			<c:forEach var="model" items="${pageBean.resultList }" varStatus="var">
					<div class="item itemred_2">
						<div class="subject1">
							<div class="text">
							<c:choose>
							<c:when test="${empty  model.deplyBackgroundColor}">
								<c:set var="timeColor" value="time${model.backgroundColor}" />
							</c:when>
							<c:otherwise>
								<c:set var="timeColor" value="${model.deplyBackgroundColor}" />
							</c:otherwise>
							</c:choose>
								<div class="time ${timeColor }">
									<div class="titwrapper">
										<div class="tit">
											<span class="j"><b>距离</b></span> <span class="c" title="123"><b>${model.title }</b></span>
											<span class="h"><b>还有</b></span>
										</div>
										<div class="con">
											<h3>
												${model.timeModel.day }<span class="hanzi">天</span>
											</h3>
											<div class="tit1">
												<span class="hour"><span class="num countDown_plugin" shieldSettings="{'times':'${model.countDownTimeStr}'}"></span>
												</span>
											</div>
										</div>
										<div class="tit bott">
											<span class="b">
												<span class="end_time">
													<span class="han2">结束日：</span><span clss="num2 ">${model.endTimeStr }</span>
												</span>
											</span>
										</div>
									</div>
									
									<span class="tool_count">
									<span data-url="${ctxPathA }/usercenter/user_countdown/del" shieldParams="{'id':'${model.id }'}"    class="shieldAjax del_count" viewTitle="确定要删除该条记录吗?" title="删除倒计时"></span>
									<span  data-url="${ctxPathA }/usercenter/user_countdown/toAddOrUpdate" shieldParams="{'id':'${model.id }'}"  class="edit_count shieldDialog"  title="编辑倒计时"></span>
									</span>
								</div>
							</div>
						</div>
					</div>
				</c:forEach>
					
				</center>
			</div>
		</div>
	</div>
</shield:permssion>
<%@include file="/WEB-INF/view/a/include/pagination.jsp"%>